package cn.stylefeng.guns.modular.business.frequency.agreement.service;


import cn.stylefeng.guns.core.pojo.page.PageResult;
import cn.stylefeng.guns.modular.business.frequency.agreement.entity.Agreement;
import cn.stylefeng.guns.modular.business.frequency.agreement.model.param.AgreementEditParam;
import cn.stylefeng.guns.modular.business.frequency.agreement.model.param.AgreementPageParam;
import cn.stylefeng.guns.modular.business.frequency.agreement.model.param.AgreementParam;
import cn.stylefeng.guns.modular.business.frequency.agreement.model.result.AgreementDetailResult;
import cn.stylefeng.guns.modular.business.frequency.agreement.model.result.AgreementPageResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 协议表 服务类
 *
 * @author 李文龙
 * @date 2021/10/28 13:58
 */
public interface AgreementService extends IService<Agreement> {

    /**
     * 分页查询协议表
     *
     * @author 李文龙
     * @date 2021/10/28 13:58
     */
    PageResult<AgreementPageResult> page(AgreementPageParam agreementParam);

    /**
     * 查询所有协议表
     *
     * @author 李文龙
     * @date 2021/10/28 13:58
     */
    List<Agreement> list(AgreementParam agreementParam);

    /**
     * 添加协议表
     *
     * @author 李文龙
     * @date 2021/10/28 13:58
     */
    void add(AgreementParam agreementParam);

    /**
     * 删除协议表
     *
     * @author 李文龙
     * @date 2021/10/28 13:58
     */
    void delete(AgreementParam agreementParam);

    /**
     * 编辑协议表
     *
     * @author 李文龙
     * @date 2021/10/28 13:58
     */
    void edit(AgreementEditParam agreementParam);

    /**
     * 查看详情协议表
     *
     * @author 李文龙
     * @date 2021/10/28 13:58
     */
    AgreementDetailResult detail(Long id);

    /**
     * 修改状态（字典 0正常 1停用 2删除）
     *
     * @author 李文龙
     * @date 2021/10/28 13:58
     */
    void changeStatus(AgreementParam agreementParam);

}